package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechFiles;
import com.appkubes.mall.core.po.FintechFilesExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechFilesMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechFilesSqlProvider.class, method="countByExample")
    long countByExample(FintechFilesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechFilesSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechFilesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_files",
        "where file_key = #{fileKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String fileKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_files (file_key, app_key, ",
        "storage_type, file_url)",
        "values (#{fileKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{storageType,jdbcType=VARCHAR}, #{fileUrl,jdbcType=VARCHAR})"
    })
    int insert(FintechFiles record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechFilesSqlProvider.class, method="insertSelective")
    int insertSelective(FintechFiles record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechFilesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="file_key", property="fileKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="storage_type", property="storageType", jdbcType=JdbcType.VARCHAR),
        @Result(column="file_url", property="fileUrl", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechFiles> selectByExampleWithRowbounds(FintechFilesExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechFilesSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="file_key", property="fileKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="storage_type", property="storageType", jdbcType=JdbcType.VARCHAR),
        @Result(column="file_url", property="fileUrl", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechFiles> selectByExample(FintechFilesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "file_key, app_key, storage_type, file_url",
        "from fintech_files",
        "where file_key = #{fileKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="file_key", property="fileKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="storage_type", property="storageType", jdbcType=JdbcType.VARCHAR),
        @Result(column="file_url", property="fileUrl", jdbcType=JdbcType.VARCHAR)
    })
    FintechFiles selectByPrimaryKey(String fileKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechFilesSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechFiles record, @Param("example") FintechFilesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechFilesSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechFiles record, @Param("example") FintechFilesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechFilesSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechFiles record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_files
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_files",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "storage_type = #{storageType,jdbcType=VARCHAR},",
          "file_url = #{fileUrl,jdbcType=VARCHAR}",
        "where file_key = #{fileKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechFiles record);
}